fix unsubscribe 'error topics'
refactor header file