added repo check, version flag