add after_hook to providers