added local settings support