More debug + fixed config parsing