added ability to grab data from file