trying out removing some code to debug mystery 500