script for creating new posts