workaround for substring-search