switched to a runtime initialization model for majority of processing to mitigate effects of catastrophic memory leaks in bash