better logging
lock file
ignore log file