to make the critical section ok on the attach