added remote directory configuration option