added command printing