add file existance check