support to cut the unnecessery beginning of a file