use find + exec + basename for better performance