needs to output how to terminate