small change to controller to make it more useful in terminal