bug fix + remote mongodb