pass settings to general functions.