minor additions to make gem work