restored latest working version of character factory