fix steam(), add leaf(), sort leafs