finally main features working

FRP is quite difficult to grasp, but things seem to be getting better now,
after 3 days of misunderstandings.