added debug ability