adding mongo socket support