add simple read from file functionality