implemented collection locking; added msgs and checks on views