backup state in listener file