proper logging
Proper lock implementation, interrupt handling