added serialisation upon ctrl+s