start and upgrade libraries