- changed check for config.useCasting is config.use.casting now