added more spin locks