use apiprefix instead of repo