grotop adapted to the new rewrite