fixed some bugs
added logs
brushed logging
multithread release