Add enum direction
delete intern enum
fix commit error