add support for remoteFile as object {"filePath":.., "extension": ...}