client almost working without gui