fixed scripts a bit