add option to disable usage of temp files