modify tiny web server to rack
add middleware