add a start of unregisterPlugin function