improve script; put config files to configs dir;