moved Piston.application assignment before application and environment config