change _error and _output types in main class