fixed mongos compatibility bugs (closes #7)