added opts to n-posts, added get-notes-n-posts