used ruby idom do end for multi line blocks and fixed error of using config without symbols.