changing main class to dynamically import files