added in a 'setup' boolean argument to indicate that set_resources is being called...