add better debug statements