simplified to one trail for uploading