refactored posts, added optional cathegories