take care of setting prefix_path for backwards compatibility