fix undefined max_memory needed for the update call
ask confirmation for offline updates rather than exiting