fixed some bugs
fixed local timestamp bug in notifications