tons of changes to speed up the mongo process