testing for dynamic loading and refactoring to support