removed domain check, added mongoose as an explicit dependency, updated template