removed locks and warn turned to error