generate post and user's files