implemented resource parameters in code generation