some minor fixes. add option to replace a file directly in queue