startup sequence; almost working;