no longer needs global $CONFIG