disabled buffered for stdout and removed firststep from outer since it was unnecesarry