added config option for first function and test