moved gdl_parsing into util because it's useful now\!