psgi plugin improvements