added GD support