adding file locking again