support for STDIN added