fixed variables
fixed forgotten commandline switch for remote file