added after_success hook