prepare files for post types