added version 2 setting for api