fixed for variable paths