fixed root_path method