fixed resource reporting in Script.java