added handling of 2d profiles with test. updated NAMESPACES