added preregister option