fixed compile-time bugs. now config.out runs without any issuesls!