building gem/fixing bugs