finished up rewrite of shell scripts, about to debug