improve filter handler
server file split into main, web handler, service handler, errors