got rid of unused interfaces, created posttype model