started working on combining all the scripts into one. split do stuff back into two scripts to make it more readabl