refactoring and fix a bug.
(change root path of quest whenever quest is devered)
run sendmail in background task