1,files layout;2,open file logic