add TryGem script and move common code to helpers module