port more primitives and begin lua work