partial work on client/server wallet