moved setup code to main directory