add gem puma and front-end optimazations