generalize the clone mechanism in mime ...