add return value to hook() in promise