attempt to mitigate 500 error