implement event listeners from config