cleanup output print, use local directories for input data