add legacy version