Mechanisms of phosphoryl and acyl transfer