pass --file FILE or --url URL; fix relative dir