fixed config reading to be able to read read files properly

:s