add logging, todo format wtf