implement oj connection