scripts corrections