additions for gri (thanks eric)