added support for ajax headers