allows users to pipe standard input when lastline flag is not set