smarter way to install gem