return int from FindByClass closes #371