client singleton ref bug
const correctness
connect gui integration