fix a platform issue, add version parameter