added branch headers to api request if branch is available