scripts adapting