adding filepath to some functions