setting async = true from false. async = false works fine on chrome but has some unreliable behavior on firefox, ie