determined api version, change weight to hande error