add map, allow to redirect to stderr