modifies mongo connection events