main script to also initilize the environment so that tests run. TODO now code would no accept multiple runs