better way of dumping morphology