adding debug capabilities