add 'error' type to notify function, because of floky :]