move local_path into filter