trying a fix for 502 bug