added code for serverside storage of chars