add logging, some settings fixes