added question # and QID debug code