added use definitions to generator