only include debug functions if needed