better offline handling.