adding proper conditions is mongod already runs