improve scripts