adding hooks for config