Fix for wrong path file
Many changes. Hopefully done with config