work on loadingdocument and email