implement native-pig platform