fix slow startup