update header and clean some dependencies