syncronization in getOpenFileName