added listener and config