first attempt at rewriting check-oa from fastcgi to sinatra