added Main to client