converted Map/Metro.pm to package