Handlers: each handler is configured with parameters from the catalog

+ other improvements and fixes