fixed costs somewhat work but getting 401 unauthorized response