refactor boilerplate of closure construction for psh.sh into an enclose method.
remove the debug printfs from psh.sh