'-i' flag added to check input headers