some simple tools for debug