updated config and core.js, now handling shadows