update for grape 0.3 compatibility