please only pass 3 arguments: `gaiaDir`, `remotePath`, `profileFolder` and remove global `config` object (if unnecessary)