added local repository support