moved namespace definition to dump method