fix some issues
remove old rules and routes definition study