fix compile issue
split connection and session