using rack request instead of accessing raw environment