modified GET and HEAD