removed global context of var io