Fixed log and config

I should test more