add ups.lua, first pass of ups module