moved Box to Box.swift, renamed safeHead to head