file locking error due to lazyness solved