inline draft & library for cookie storage