split out the functions into a separate file so that buildbot_ng.sh just acts as a controller...we can further improve/cleanup later