add exclude file function