minor changes at gems to allow run on c9