fix bug introduced by merge with master
adjust tep reader to new file api