added more logging. output predictions