update server listening (thanks to romain suggestion)