added support for Accept header