finish more ecs,message_file funtion