Correct structure for module.exports and plugin system
move requires into func call; this stops inch-plugins from pulling in extra things before needed