abstract some params, rename psgi's