added comment handling in config