replace deprecated config macro