added debuginfo method