added support for custom-fields in regster custom post types