implement filname tokenizing