make sure path is well formed when created