move variables and add dependency for settings