fixed problem with static external classes