another attempt to fix JSON requests