move setup to config