some changes to make some of the sample scripts work in Glyphs.