misc changes associated with mongodb