stage removal of key functions to be rewritten for general shell script compatibility across systems