removed unnecessary file locking