add allow to disable adapter