apply settings on load