search now outputs to console