debugging support added