submitting files to process synchronously