working final scripts