fixing startup procedure