copy in from GADS4 wiki