REK:  fixing startx, starty to ensure that user can't mess up startx, starty with bad template file