mofied routines to match the updated ones from the gemini_util libraries