clean up the way resources are generated