set up basic client-side structure.