moved bootup stages in namespaced functions for greater modularity