simplified file handler