making path setting dynamic