add option to collect source-map data