instantiate resources with attributes