improve startup sequence