move globals to their own package