added wildcard search, config for test env, permission