removed unneeded pretty_print require. put settings load into a method.