update structure and remove useless libraries