character factory for saving and getting chars