new version with identity in queue locks