remove deprecation and mongo missing config