read and write moduals splitted