some modifications for local repository support