added hook configuration
fixed dictionary