updated stub generator to work with psuedo classes