added mrhdias' GD binding