lots of ruby tweaks, added html-init