save all resources