Text this: Modified ray theory in the presence of a boundary /