changed batch scripts to shell scripts