refactor (3)
add out prefix for mapping
be more specific about intermediate files