changed to onopen, we may have had a bug