running api and pages as single process or clustered
fixing server-error handler bug both in api and pages