layers safe init