added config to self hosted app, added events