added settings and sort log