add hierarchyLevelName usginres: keyword handler

also some logic to try and guess the resource type