moved setup to script