add offline flag