Debugging the ref upload