read-files&switch&map