updated bash_function_init mod