can we make the "500" a setting rather than just an arbitrary piece of code?