implemented cell and reference saving int OpenCS