save object with fileAPI <in teaching mode