fixes to cap deploy