bleh.

half baked refactor with no tests bites me

	modified:   index.js