added access() check when single file is passed