fix building sentinel into cookie string