modified cap deploy