got basic code gen working