add DEBUG support