move setup away from mongo