fix improve scripts