trim some logic out of the note plugin