some fix + a class example to generates forms