corrected a bug in findByScript(). Removed duplicate file