need to take care of init order, or else NPE will fly

fixed startup logic error, this should be handled completly different.
this is only a workaround