new config support for casting