now also store commits correctly.