added basic debugging