add print command result to the console