check if latest version $p is present, else 404
check if latest version $p is present, else 404