fix event registration

should be fanta,1 instead of fanta1
change relevant functions to const