take care of cap deploy errors