checks for args first, if nothing - listens to stdin