allowing for stdin as input