added basic historization of actions; TODO tests