correctly handles push notifications