added gemmy stuff