Libraries and state