script runs well from the command line but not runner