add block&unblock function

TODO add status recorder