added HEAD request handling through head()