prevent hangs