several GEMINI fixes