better error handling of bsh scripts
initial revision
initial revision
initial revision
updates