various fixes, but key issue was the "isArray" parameter for resources...