organized functions

still need to add hosts to it