fix slightly broken init stuff