https://github.com/srid/emanote/pull/517/files#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0R84-R104