attempting to fix broken custom_dir option