more refactoring work and app.post cleanup for posts
working on post creation