add an initilization method to resources