add check to make sure path exists