changed path file to global for usage