fixed deps and async bug