got basic generation working