implemented push notifcations and some alert API