improved bre_dispose