modified some logic for defaul file