worked on debug features