stupid bash bug fixed + some codegen progress