callback for getDocument is optional (submit and forget)