uploading tree structures