added missing function and changed config directory path