use config.directory for update command too