avoid using resources and use lamdbas instead