sys_record(STRING*, var mode)
then
sys_replay(STRING*)