init working on client