adding gd support