renamed format_path to build_path