added regid logging