improved scripts