add flattening pig loader