basic code gen works