add disabled setting and api function