added debug support on gui