fixed  SampleStage to correctly read config file!