improved configuration sample