fixed minor issues using tp_smapi