move some things out of functions and aliases and into scripts