unpacks gem and fixes