add dict dynamic switch lib