refactored normalized scripts a little from last commit