settings configutation and directory setup