fixed character generator to have no main and stuff