added debug script; update