fix for dynamically creating new classes