captain debug to the rescue