smart get file method