make dynamic loading work