updating the admin functions to detemine where things are breaking on production