correclty support clss with parameters