fixed some gem stuff