change namespace/package mappings algorithm