add configuration and handlers