new post types support and other small fixes