updates gem and fixes some issues