fixed some scrpts