got file reading working