remote: convert functions to struct object_id