add remote_api support