more debugging on segment object