helpers for registering methods