first attempt at local option
removed some unused stuff
Local modes and change exponent