codechat persistence finished + some fixes