Title: “ Nonlinear optics with mid-IR free-electron laser and pulse propagation dynamics in metamaterials and atomic gas ”