changed how config loads, added messages hash