added mongo methods and inbound