added config manager, not complete yet