workaround for apparant bug in socket.io or phantomjs, needs further investigation