Fix resource deployment
work in progress