figuring out resources stuff