no need to get class twice for this case
avoid parsing user provided keys as paths
slightly more helpful log message