modified to add headers to angular calls