try to filter obviously inadequate files, store uri in preferences