update config and add directory