adding upload options, debugging recording of trails