[WIP] console app taking data and mapping files
[WIP] make resource and tmp file access more flexible