made more graceful stdin cmd line args