refrator misc directory and add configs