add settings and fix for run example

incase someone try to run example