Fixed interactions with rest, added config module;