add listener to detect webserver launch