BUGFIX: missing global $CORE_LOCAL ref