changing to client and public mode