better error logging for web API
fixed background-ing for server and cluster