refactor blanket script insertion into separate file