changed many of the posttype static methods into object methods