added sendable class, added state available and partical citical sections