added ResourceBlock cleanup