register subs as methods too