changed minimu to imu, added try-except blocks