bugfix: typehints work in namespace, and removed public modifier