moved some headers to clear() for init