code should now be able to deal with excape characters
scratch notebook