updated call to return exit code 1 on failure