crap I forgot to commit, mainly adding functionality to the script language