switch depend to better config and ms