update example config file.
move source() calls outside the function.