debug internal server error with sync

hope this works