context clone, de/serialize