added code for input and debug utils