* add allow/block switch * keep api private * typing * change default to None * retain None state * change default to None