small gem fixes