read input headers