working on porting pgds-renderer into smt