added .onLoad to add resource path (addResourcePath)