adding more comments, debug interface