move option variable closer to type
handle optional offset file