fixed #284. add validation of notify API