fixes
changed bash functions to scripts