fixed dynamic module loading for build