fix the build with rethrow static method