add small debug feature