scripts fixed