move to a gem
made headless and refined some stuff
merge fix