add ServerLoop and ClientLoop. add call_sync, call_async