timeout to catch hangs... working so far