dll loading moved to separate file