working on api for notifier