implemented configuration lookup, needs improvement