updating samples to use dynamic config