add log for initializing state