make sure resources exist