update the examples and the scripts so that they are less broken by the directory reorganization