restructure optpath files