he should be treated as the custody of the court