fix auth
 adding check to see if path exists