param: rename lp function and variable from "rootdir" to "root_directory"