removed str variable from loadResources() to simplify loading configs a bit more