added block/unblock functionality