fix dependencies problem with mongoose
added logging