move romreader to separate file