added config management and directory monitoring