changed eb logic as offline