Ease debuging

should be merge after #30. Ping me when you merge #30, I will
rebase this PR.