made token file optional