added basic debug functionality