moved traitsearch to a separate file to avoid parse error if php version is lower than 5.4