switched to sh generation and execution because control was not being returned