wires up name generator
fix bug