added some state leg renamed dir