this is ugly -- checkpoint.