update execution of after_success script