clean up a few minor quirks and replace root_path