added file reading , but its broken