start splitting script up into pieces