debugging CAS plugin