recording of user interaction and transforming it into script