adding logging in java
Atomic file locking is BAD