generalized code deploy