simplify: move namespace and globals into Actor class
simplify: no namespace, only globals