write adapter config to a file