add gd support