trying to work out the bug with yr giving HTTP error code 500 for 5-10 times on random locations