use config.getBytes where appropriate