moved nasa script to bash functions