updated from clientview.go updates
add debug support to read resources from file.