load class as dict, not class