fixes and using configuration from user project
remove debug prints and make osx build work with a single run