some possible framework stuff for decorator-based function registration