fixes for cap deploy