using flags to save resume data