added stdin option (-s -)