add functions to bash subdir