improve code generation and started work on loaders