add app_directory setting