add lock to global variable
add ignore file