adding post functionality
merged