removed old commented out code; wrap commands with 'bash -c'