use io.open
tie in db metadata system