turn foo/bar to Foo::Bar