added several file commands, fixed backslash substitutions