add printing option, support basic command to print