added full path for posts directory