fixed -p or -t option in console