clean up global API, make console a global var instead of static class, still some issues left to resolve