WIP gemify code