trying stuff to fix issue with http 400 - Bad Request