refactoring
added api for houses and housetypes