fix segment storage, remove logging