fix indentation; orders schema; error messages