some modifications to delregCommand