added handlers for log, and fixed settings