compile checkpoint