small changes to get CAS data workingin mongo locally and on AWS