add settings and fix log