gallery debugging