bugfix (and renaming) in assemble_paths