add safe queue