finished inital PreInit function porting