add code
do not call lockFileName twice