using  instead of dir2xzm directly