implementing global namespaces

todo: adding backward compatibility, improve general performance, add
another language