modified for gem install