called first
onopen called
called third