moved namespace to Connection instead of register