example code moved away from core