added bookshelf.js apartment handling