some fixes to gladdy support