splitting init routines to allow DPI C startup