add basic debug logging