tweaks to allow for multiple post types