probably a nicer way to set up root resource