added support for custom post types