case-insensitive, debug bugfix