make stdin as an option