fixed running without mongo and without tls