utility functions for golr