changed beididp to allow auto-registering