add optional debugging utilities