add example config file and fixed patch