added rainbowOffset handler
got rainbow working, with both automatic and manual translation