adapt some configs