fix plugin dependency and build by removing unnecessary imports