use builtin mapexit