changed samples to config in parser