hooks for sugar module