making note function work on linux in addition to bsd/darwin