fix indentation in script and update res