remove most dependencies.