basic rpc + openssl locking