using gem instead of rack