get console printing working