register hooks
resolve