factor out minion web handler logic + more clean