added applySettings script