small modifications to path