fixing notfound and cors paths