refactor enhancer to put all of the functions into a single R.enhancer object