Gateway example - listening problem fixed