cleanup
make into a polyglot shell script