frappe/frappe#478 fixed todo and renamed hooks