added static handler middleware