splitted added setting module and moved code there