scripts improved