phantom scope onResourceRequested