added config functions.