added config file, fixed delete handling