adding debug boilerplate