increment version and update history