use of generique function in mime's methods outputAs*()
better output format management