See above comment... would it be worth accepting both `root` and `prefix` here?