added library class, item existence and commands now checked both on scene and on library